package com.example.demo.entity;

import lombok.Data;

import java.util.Date;

@Data
public class TheoryKnowledgeCollection {

    private Integer collection_id; // 喜欢的乐器表ID
    private Integer user_id;       // 用户ID
    private Integer theory_knowledge_id; // 乐器ID
    private Date collection_date; // 喜欢日期

    private String name;
    private String type;
    private String image;

    public Integer getCollection_id() {
        return collection_id;
    }

    public void setCollection_id(Integer collection_id) {
        this.collection_id = collection_id;
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public Integer getTheory_knowledge_id() {
        return theory_knowledge_id;
    }

    public void setTheory_knowledge_id(Integer theory_knowledge_id) {
        this.theory_knowledge_id = theory_knowledge_id;
    }

    public Date getCollection_date() {
        return collection_date;
    }

    public void setCollection_date(Date collection_date) {
        this.collection_date = collection_date;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    @Override
    public String toString() {
        return "TheoryKnowledgeCollection{" +
                "collection_id=" + collection_id +
                ", user_id=" + user_id +
                ", theory_knowledge_id=" + theory_knowledge_id +
                ", collection_date=" + collection_date +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", image='" + image + '\'' +
                '}';
    }
}
